package com.appspot.entourage.ui.shared;


public class FieldVerifier {

	
	public static boolean isValidName(String name) {
		if (name == null) {
			return false;
		}
		return name.length() > 3;
	}
	
	public static boolean isValidNumber(String numStr) {
		boolean isValid = false;
		int num = 0;
		
		if (numStr == null) {
			return false;
		}
		
		try{
			Integer.parseInt(numStr);
			isValid = true;
		}catch(NumberFormatException  ex){
			isValid = false; 
		}
		return isValid;
	}
}
